package com.sn.dao;

import com.sn.model.ChargeOrder;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

/**
 * Created by qingshengzheng on 18/6/21.
 */
@Mapper
public interface OrderMapper {
    @Insert("insert into chargeorder(cid,createtime,product,price,comments,pnum) values(" +
            "#{cid},#{createtime},#{product},#{price},#{comments},#{pnum})")
    @Options(useGeneratedKeys=true, keyProperty="orderid", keyColumn="orderid")
    public void addChargeOrder(ChargeOrder order);
}
